package service;

import dao.Track;
import dao.TrackDao;
import dao.TrackDaoImpl;

import java.util.List;

public class TrackServiceImpl implements TrackService {
    private static final TrackService INSTANCE = new TrackServiceImpl();
    private static final TrackDao trackDao = TrackDaoImpl.getInstance();

    private TrackServiceImpl() {

    }

    public static TrackService getInstance() {
        return INSTANCE;
    }

    public List<Track> getTracksByAlbumId(Long albumId) {
        return trackDao.getTracksByAlbumId(albumId);
    }
}
